package com.tron.dobest.commonslang;

import org.apache.commons.lang3.ArrayUtils;

import java.util.Arrays;

public class Start {
    public static void main(String[] args) {
        String[] strings = {"9","1","2","3"};

        //判断是否包含某一元素
        boolean contains = ArrayUtils.contains(strings, "1");
        System.out.println(contains);


        //判断是否排序
        boolean sorted = ArrayUtils.isSorted(strings);
        System.out.println(sorted);

        //翻转数组
        ArrayUtils.reverse(strings);
        System.out.println(Arrays.toString(strings));

    }
}
